﻿<html lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>播放页面</title>
<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
<script type="text/javascript">
	$.extend({
		getUrlVars : function() {
			var vars = [], hash;
			var hashes = window.location.href.slice(
					window.location.href.indexOf('?') + 1).split('&');
			for (var i = 0; i < hashes.length; i++) {
				hash = hashes[i].split('=');
				vars.push(hash[0]);
				vars[hash[0]] = hash[1];
			}
			return vars;
		},
		getUrlVar : function(name) {
			return $.getUrlVars()[name];
		}
	});
</script>
</head>
<body>
<div id="ckplayer" style="align: center"></div>
<script type="text/javascript" src="ckplayer/ckplayer.js" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
	var su = decodeURIComponent($.getUrlVar("s"));
	su=su.replace(/&/g, "#");
	su=su.replace(/=/g, "@");
	console.log(su);
	var flashvars={
		f:su,
		c:0,
		b:1,
		p:1,
		e:1,
		v:80,	
		};
	var params={bgcolor:'#FFF',allowFullScreen:true,allowScriptAccess:'always'};
	CKobject.embedSWF('ckplayer/ckplayer.swf','ckplayer','pv_ckplayer','800','600',flashvars,params);
</script>
</body>
</html>